<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
get_header();
?>

<div id="primary" class="site-content">
    <div id="content" role="main">

        <?php while (have_posts()) : the_post(); ?>
            <?php get_template_part('content', 'page'); ?>
        <?php endwhile; // end of the loop. ?>


    </div><!-- #content -->
    <a href="#top" style="float: right;">Til Toppen</a>
</div><!-- #primary -->

<?php
global $hide_right_sidebar;
if ($hide_right_sidebar) : ?>
<?php get_sidebar('left')?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<?php get_footer(); ?>